package com.chzc.fm.duotin.bean.home;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/27.
 */
public class AlbumBean {


    /**
     * id : 86063
     * title : 民谣在路上
     * image_url : http://c3.duotin.com/i1/DT/mFNY29AQuO00cTNPzaz7KHfSV7sAWnBQJ6FKKH9m1fA.jpg
     */

    private String id;
    private String title;
    private String image_url;

    public static AlbumBean objectFromData(String str) {

        return new Gson().fromJson(str, AlbumBean.class);
    }

    public static List<AlbumBean> arrayAlbumBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<AlbumBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }
}
